package com.xuecheng.manage_course.service;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_course.dao.SysDicthinaryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class SysDicthinaryService {
    @Autowired
    private SysDicthinaryRepository sysDicthinaryRepository;

    public SysDictionary getByType(String type){
        return sysDicthinaryRepository.findByDType(type);

    }
 }
